﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TJTools : TJLogger {

	private AndroidJavaObject _jo;
	private AndroidJavaObject jo {
		get{
			if (_jo == null) {
				_jo = new AndroidJavaObject ("com.tjutil.Tools");
			}
			return _jo;
		}
	}

	public string GetLanguage(){
		
		#if UNITY_ANDROID
		string language = jo.Call<string>("getLanguage");
		TJLog ("获取语言：" + language);
		return language;
		#endif
		return null;
	}

	public void QuitGame(){
		
		TJLog ("退出游戏");
		#if UNITY_ANDROID
		jo.Call("quitGame");
		#endif

	}
}
